package ${packageName};



import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import java.util.List;

/**
* 实体间映射
* ${author}
* ${now}
*/
@Mapper
public interface ${entityName}Struct {

    ${entityName}Struct INSTANCE = Mappers.getMapper(${entityName}Struct.class);


    ${entityName} toEntity(${entityName}DTO dto);

    List<${entityName}> toEntity(List<${entityName}DTO> dtos);


    ${entityName}DTO toDTO(${entityName} dto);

    List<${entityName}DTO> toDTO(List<${entityName}> dtos);

}